#ifndef CSWRITER_H
#define CSWRITER_H
#include "QTCore"
#include "constantManager.h"
#include "libxml/xmlwriter.h"
#include "libxml/encoding.h"

class CSWriter
{
public:
    CSWriter();
    
    static CSWriter * sharedWriter();
    
    //write the whole tree to an xml 
    void writeCSC(QString destFile, bool isprojF = false);
    void writeCSCProjFile(QString destFile);
	void generateXML(QTreeWidgetItem * item , xmlTextWriterPtr writer, bool isProjFile);
};

#endif // CSWRITER_H
